package com.ruoyi.model.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Desensitization;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.enums.DesensitizationTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author : 张怀秋
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoDto {
    private String rePassword;
    private String email;
    private String avatar;
    private String account;
    private String nickName;
    private String password;
    private Integer sex;
    private String specialized;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date matriculationTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date graduateTime;
    private String degree;
    private String contact;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    @Desensitization(type = DesensitizationTypeEnum.CHINESE_NAME)
    private String name;

    @Desensitization(type = DesensitizationTypeEnum.MOBILE_PHONE)
    private String phone;

    /**
     * 个性签名
     */
    @Excel(name = "个性签名")
    private String signature;

    /**
     * 学校（院系）
     */
    @Excel(name = "学校", readConverterExp = "院=系")
    private String school;
    private Integer status;
}
